' --------------------------------------------------------------------03/20/2007
' RevBlockControl
' RevBlockControl.swp - By Matthew Lorono Copyright 2007
' Contact:  fcsuper@aol.com
' Distributed at:  http://sw.fcsuper.com
' This macro is provided as is.  No claims, support, refund, safety net, or
' warranties are expressed or implied.  By using this macro and/or its code in
' any way whatsoever, the user and any entities which the user represents,
' agree to hold the author free of any and all liability.  Free distribution
' and use of this code in other free works is welcome.  If any portion of
' this code is used in other works, credit to the author must be placed in
' that work within a user viewable location (e.g., macro header).  All other
' forms of distribution (i.e., not free, fee for delivery, etc) are prohibited
' without the expressed written consent by the author.  Use at your own risk!
' ------------------------------------------------------------------------------
' Description:
' Gives the user control over the addition of new revisions to SolidWorks
' revision tables.  It includes a Preview of changes and several settings to
' support many different types of revision tables.
' ------------------------------------------------------------------------------
' Version - By Matthew Lorono, Copyright 2007
'            .90         * Created Macro
'            .92         * Fixed bug on execution of selection order of
'                          date/approval in error in some cases; fix name in
'                          windows title bar
'            .95         * Add Description Line Feed  and  functions; add
'                          choice to update "Current Revision" custom property;
'                          make Preview fully represent option choices; set
'                          focuses
'           1.00         * Add Help form and functionality
'           1.01         * "Special", not "Speical"; add poke easter egg; add
'                          ControlTipText to PM and Deg buttons
' ------------------------------------------------------------------------------


Here's what users can change quickly without disturbing the code on 
the Rebloc1 form under "Private Sub UserForm_Initialize()" within the macro (not
here in this text file):


' Defaults (Change intitial settings here)
  zoneONOFF1.Value = False      ' (False = No Zone Column; True = Zone Column exists)
  Overwrite.Value = False       ' (False = Create new line for Revision; True = Edit last line)
  revdateswitch.Value = False   ' (False = Approver before Date; True = Date before Approver)
  ButtomUp1.Value = False       ' (False = Top Down Rev Block; True = Bottom Up)

Also, using the same format, existing values for `Desciption` and `Rev By` may
be replaced with your own preferences:

' Convenient Options for Desciption
  Desc1.Clear
  Desc1.AddItem "ECO-"
  Desc1.AddItem "DCO-"
  Desc1.AddItem "PRELIMINARY"
  
' Convenient Options for Rev By
  RevBy1.Clear
  RevBy1.AddItem "PB"
  RevBy1.AddItem "CC"
  RevBy1.AddItem "RC"
  RevBy1.AddItem "DD"
  RevBy1.AddItem "EK"
  RevBy1.AddItem "FDL"
  RevBy1.AddItem "ML"
  RevBy1.AddItem "TM"
  RevBy1.AddItem "MS"


For more intermediate users, I've made the code as simple and explained as I
can at this time to allow for easy understanding of what's going on in the code.
Many functions are labelled with their own small headers.

On updating "Current Revision":  In the module, search for "Current Revision" and change the two instances to represent whatever
custom property that is being used for the drawing revision in the title block.